<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改床位信息页面</title>
    <link rel="stylesheet" href="webjars/bootstrap/3.3.5/css/bootstrap.css" type="text/css">
    <script src="webjars/jquery/3.4.1/jquery.js"></script>
    <script src="webjars/bootstrap/3.3.5/js/bootstrap.js"></script>
    <style>
        input{
            width: 200px ;
            height: 25px;
            background-color: #f0f8ff;
            margin-bottom: 5px;
        }
        input:hover{
            border:2px #00ff00 solid;
        }
        span{
            float: left;
            width: 150px;
            height: 25px;
        }
    </style>
</head>
<body>
<legend>修改床位信息</legend><br>
<form action="/bedstaff" method="post">
    <input type="text" name="id" th:value="${bed.id}" readonly style="display:none">
    <span>档案编号：</span><input type="text" name="fnumber" th:value="${bed.fnumber}" readonly><br>
    <span>名称：</span><input type="text" name="name" th:value="${bed.name}"><br>
    <span>性别：</span><input type="text" name="sex" th:value="${bed.sex}" list="sts"><br>
    <datalist id="sts" style="display:none;">
        <option value="男">男</option>
        <option value="女">女</option>
    </datalist>
    <span>床位使用起始日期:</span><input type="date" name="stusetime" th:value="${bed.stusetime}"><br>
    <span>床位使用结束日期:</span><input type="date" name="enusetime" th:value="${bed.enusetime}"><br>
    <span>床位详细信息:</span><input type="text" name="bedtails" th:value="${bed.bedtails}"><br>
    <!--添加隐藏域-->
    <input type="hidden" name="_method" value="put">
    <button>提交修改</button>
    <button type="button" onclick="history.go(-1)">返回</button>
</form>

</body>
</html>